package sketch.ounit.fuzz;

import sketch.ounit.Values;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class NewObjectFuzzerTest extends TestCase {

	public static Test suite() {
		return new TestSuite(NewObjectFuzzerTest.class);
	}
	
	public void setUp() {
		NewObjectFuzzer.setTimeLimit(2);
	}
	
	public void testCreatingNewObject() {
		System.out.println();
		System.out.println("testCreatingNewObject object repeatedly....");
		int i = 0;
		while(NewObjectFuzzer.hasMoreObject(treemap.TreeMap.class)) {
		  treemap.TreeMap map = null;
		  map = Values.randomFuzz(map, treemap.TreeMap.class);
		  System.out.println(i++ + "th the map is: " + map);
		}
	}
	
}